package com.example.course.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 课程视图对象
 *
 * @author Jasmine-drs
 * @date 2025/4/25 10:40
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "CourseVO", description = "课程视图对象")
public class CourseVO {

	@ApiModelProperty("课程ID")
	private Integer id;

	@ApiModelProperty("课程名称")
	private String name;

	@ApiModelProperty("上课时间")
	private String schoolTime;

	@ApiModelProperty("课程代码")
	private String courseNum;

	@ApiModelProperty("上课教师ID")
	private Integer teacherId;

	@ApiModelProperty("教师姓名")
	private String teacherName;

	@ApiModelProperty("选课学生数量")
	private Integer studentCount;

	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;
} 